package com.cloud.config;

import com.cloud.vo.CloudResult;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.RestControllerAdvice;

@RestControllerAdvice
public class SystemException {
    @ExceptionHandler(RuntimeException.class)
    public CloudResult exception(Exception e){
        e.printStackTrace();
        return CloudResult.fail();
    }
}
